package com.bestcem.xm.label.enums;


import com.bestcem.xm.common.core.enums.CommonEnum;

/**
 * @author ming.xue <ming.xue@idiaoyan.com>
 * @desc 动态条件版本
 * @date 2021-05-24
 */
public enum ConditionVersionEnum implements CommonEnum {

    /**
     * 版本2.0
     */
    VERSION2("version 2.0", 2),

    /**
     * 版本3.0
     */
    VERSION3("version 3.0", 3);

    private String name;

    private int index;

    ConditionVersionEnum(String name, int index) {
        this.name = name;
        this.index = index;
    }

    @Override
    public int getIndex() {
        return index;
    }

    @Override
    public String getName() {
        return name;
    }
}
